import numpy as np
import scipy.sparse as sp
import math

import networkx as nx
N = 2000
for i in range(1,11) :
	p = float(i / 1000.0)
	A = nx.fast_gnp_random_graph(N, p,directed=True)
	B = nx.stochastic_graph(A)
	C = nx.to_numpy_matrix(B)
	B = None
	np.save("_".join(['np_mat_', str(N), str(round(p,4))]), C)
	A = None
	C = None